﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmpLeaveAdd.aspx.cs" Inherits="UI.ModEmployee.EmpLeaveAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>离职信息</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
        <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
          
    <style type="text/css">
        td
        {
            height: 27px;
        }
    </style>
</head>
<body onload="window.document.forms[0].txtEmpCode.focus();">
    <form id="form1" runat="server">
    <br />
    &nbsp;<br />
    &nbsp;<p style="text-align: center; font-size: large;">
        <strong>离职/请长假信息管理</strong></p>
    <br />
    <table style="width: 80%;" align="center" class="td">
        <tr>
            <td>
                员工编号:
            </td>
            <td>
                <asp:TextBox ID="txtEmpCode" runat="server" CssClass="InputCss" Width="100px" TabIndex="0"
                    AutoPostBack="True" OnTextChanged="txtEmpCode_TextChanged"></asp:TextBox>
                    <a href="javascript:ShowLink('ZipSeaForIn.aspx',880,550)"><img src="../Images/Search.gif" alt="搜索" width="27" height="12" border="0" /></a>
            </td>
            <td>
                员工姓名:
            </td>
            <td>
                <asp:TextBox ID="txtEmpName" runat="server" CssClass="InputCss" Width="100px" TabIndex="1" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
            </td>
          
        </tr>
        <tr>
          <td>
                部门:
            </td>
            <td>
                <asp:TextBox ID="txtDeptName" runat="server" CssClass="InputCss" Width="100px" TabIndex="2" onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
            </td>
            
            <td>
                职位:
            </td>
            <td>
                <asp:TextBox ID="txtDutyName" runat="server" CssClass="InputCss" Width="100px" TabIndex="3" onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
            </td>
            </tr>
            <tr>
            <td>
                入职时间:
            </td>
            <td>
                <asp:TextBox ID="txtJoinTime" runat="server" CssClass="InputCss" Width="100px" TabIndex="4" onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
            </td>
            <td>
                离职时间:
            </td>
            <td>
                <asp:TextBox ID="txtLeaveTime" runat="server"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" CssClass="InputCss"
                    Width="100px" TabIndex="5" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                离职类型:
            </td>
            <td>
                <asp:DropDownList ID="ddlLeaveType" CssClass="InputCss" Width="100px"  onkeydown="if(event.keyCode==13)event.keyCode=9" 
                    runat="server" TabIndex="6">
                   
                </asp:DropDownList>
            </td>
            <td>
                交接天数:
            </td>
            <td>
                <asp:TextBox ID="txtDayNum" runat="server" CssClass="InputCss" Width="100px" TabIndex="7" onkeydown="if(event.keyCode==13)event.keyCode=9">3</asp:TextBox>
            </td>
            </tr>
            <tr>
            <td>
                移交手续:
            </td>
            <td>
                <asp:DropDownList ID="ddlIsProcedure" runat="server" CssClass="InputCss"  onkeydown="if(event.keyCode==13)event.keyCode=9" 
                    Width="100px" TabIndex="8">
                    <asp:ListItem>未移交</asp:ListItem>
                    <asp:ListItem>移交</asp:ListItem>
                    
                </asp:DropDownList>
            </td>
            <td>
                
                工资</td>
            <td>
                
                <asp:CheckBox ID="cbIsSalary" runat="server" Text="不计发工资" />
                
            </td>
        </tr>
        <tr>
            <td>
                备注:
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtMemo" runat="server" CssClass="InputCss" Width="420px" TabIndex="9"
                    Rows="3" TextMode="MultiLine" onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
            </td>
        </tr>
    </table>
    <p style="text-align: center;">
        <asp:Button ID="btnAdd" runat="server" Text="增加" OnClick="btnAdd_Click" 
            TabIndex="10" />
        &nbsp;<asp:Button ID="btnUpdate" runat="server" Text="更新" 
            OnClick="btnUpdate_Click" TabIndex="11" />
       
        &nbsp;<asp:Button ID="btnLeave" runat="server" Text="请长假离职"  Visible="false"
               OnClientClick="return confirm('确定要要把请长假人员进行离职吗?\n');" 
            TabIndex="12" onclick="btnLeave_Click" /> 
            &nbsp;<asp:Button ID="btnDelete" runat="server" Text="删除" 
            OnClick="btnDelete_Click"   OnClientClick="return confirm('确定要删除吗?\n');" TabIndex="13" />
        &nbsp;<asp:Button ID="btnClose" runat="server" onclick="btnClose_Click" Text="关闭" 
            TabIndex="14" CausesValidation="False" />
    </p>
    
    </form>
    <p align="center">

        工资： 比如擅自离职，可不计发最后一月工资，勾选上复选框，计算工资时自动过滤。<br />
        请长假离职：请长假后，没有回来公司上班，直接离职了【请正确填写离职时间】，注意要勾选不计发工资
        </p>
</body>
</html>
